

#ifndef _CMD_DB_UPDATE_DATA_H_
#define _CMD_DB_UPDATE_DATA_H_

#include "commmsg.h"
#include "CTAsyncCmd.h"

class CDBCtrl;
class CCmdDBUpdateData : public CTAsyncCmd
{
public:
    CCmdDBUpdateData()
    {
    }

    virtual ~CCmdDBUpdateData()
    {
    }

    virtual int Do(void* pData);
    virtual int AnsClients(int iRet);

    int CheckDataValid(int iOpType, char cDataType, int iDataLen, char* pszData);

    static unsigned int m_uiNowSwapCount;

    CDBCtrl*  m_pstDB;
    CReqUpdateData m_stReq;
    CAnsUpdateData m_stAns;
    CTMsgHead m_stMsgHead;
    int         m_iReqCmdSeq;
    int64     m_llReqAct;
    CEnpNetHead m_stHead;

    int GetPlayerBaseInfoSqlReq(CReqSQL& stReq);
    int GetPlayerDetailInfoSqlReq(CReqSQL& stReq);
    int GetPlayerDetailInfoEx1SqlReq(CReqSQL& stReq);
    int GetPlayerSnsDetailInfoSqlReq(CReqSQL& stReq);
    int GetUnactPartnerInfoSqlReq(CReqSQL& stReq);
    int GetArenaRankSqlReq(CReqSQL& stReq);
    int GetZoneDataSqlReq(CReqSQL& stReq);
    int GetClanDataSqlReq(CReqSQL& stReq);
    int GetOssPlayerDataSqlReq(CReqSQL& stReq);
    int GetOssZoneDataSqlReq(CReqSQL& stReq);
    int GetInstanceZoneDetailInfoSqlReq(CReqSQL& stReq);
    int GetOssPlayerMoneySql(CReqSQL& stReq);    
};

#endif
